package my.diplom.dao.service;

import my.diplom.dao.IStatDAO;
import my.diplom.entity.Stat;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: gb
 * Date: 14.07.2009
 * Time: 17:27:42
 * To change this template use File | Settings | File Templates.
 */
public class StatService {

    private IStatDAO statDAO;

    public IStatDAO getStatDAO() {
        return statDAO;
    }

    public void setStatDAO(IStatDAO statDAO) {
        this.statDAO = statDAO;
    }

    public void create(Stat stat) {
        statDAO.create(stat);
    }

    public void update(Stat stat) {
        statDAO.update(stat);
    }

    public Stat getById(Long statId) {
        return statDAO.getById(statId);
    }

    public List<Stat> getAll() {
        return statDAO.getAll();
    }

    public void delete(Stat stat) {
        statDAO.delete(stat);
    }
}
